package com.woniuxy04;

/**
 * @author 作者
 * @create 2025-10-29 15:03
 */
public class Test02 {
    public static void main(String[] args) {
        //类(数据类型) 对象（变量）=new 构造方法();
        Student s1 = new Student();
        System.out.println(s1.showInfo());
        s1.name="xxx";
        s1.age=11;
        s1.gender="male";
        System.out.println(s1.showInfo());

        Student s2=new Student("a",11,"male",170,60);
        System.out.println(s2.showInfo());

        Student s3=new Student("b",15,null,0,0);
        System.out.println(s3.showInfo());

        Student s4=new Student("c",18,null,111,50);
        System.out.println(s4.showInfo());

    }
}
